﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BookStore.Data;
using System.Data;

namespace BookStore.Bussiness
{
    public class manufacturerService
    {
        manufacturerController objManu = new manufacturerController();
        #region getbyID
        public static manufacturerInfo getbyID(int manufacturerID)
        {
            return manufacturerController.getbyID(manufacturerID);
        }
        #endregion

        #region getAll
        public static DataTable getAll() {
            return manufacturerController.ListManufacturer();
        }
        #endregion

        #region insert
        public static bool insertManufacturer(manufacturerInfo objManufaturer) {
            return manufacturerController.insertManufacturer(objManufaturer);
        }
        #endregion

        #region update
        public static bool updateManufacturer(manufacturerInfo objManufacturer) {
            return manufacturerController.updateManufacturer(objManufacturer);
        }
        #endregion

        #region delete
        public static bool deleteManufacturer(int manufacturerID) {
            return manufacturerController.deleteManufacturer(manufacturerID);
        }
        #endregion

        #region checkManu
        public static bool checkManu(int manuID) {
            return manufacturerController.checkManu(manuID);
        }
        #endregion
    }
}
